package com.dragon.modules.yuegou.entity.system;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.system.DictStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 字典表实体类<br>
 * 对应的表为：sys_dict<br>
 * 
 * @author pbuilder generated
 * @date 2019-03-18 15:36:49
 * @company sgy
 * @version 2.0
 */
@TableName("sys_dict")
@ApiModel(description = "字典表")
public class DictEntity {

	protected String id;

    /** 编码 */
	@ApiModelProperty("编码")
	protected String code;

    /** 值 */
	@ApiModelProperty("值")
	protected String type;

    /** 中文文本 */
	@ApiModelProperty("中文文本")
	protected String text;

    /**  */
	protected Integer sortNo;

    /**  */
	protected String remarks;

    /** [枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED */
	@ApiModelProperty("[枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED")
	protected DictStatus status;

    /**  */
	protected LocalDateTime createdTime;

    /**  */
	protected String createdBy;

    /**  */
	protected LocalDateTime modifiedTime;

    /**  */
	protected String modifiedBy;

    /** 逻辑删除，1表示已删除,0表示未删除 */
	@ApiModelProperty("逻辑删除，1表示已删除,0表示未删除")
	protected Boolean del;

    /**  */
	protected String delBy;

    /**  */
	protected LocalDateTime delTime;

	/**
	 * 构造一个空字典表实体对象
	 */
	public DictEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个字典表实体对象
	 * 
	 * @param other 其它对象
	 */
	public DictEntity(DictEntity other){
		super();
     	this.id = other.id;
     	this.code = other.code;
     	this.type = other.type;
     	this.text = other.text;
     	this.sortNo = other.sortNo;
     	this.remarks = other.remarks;
     	this.status = other.status;
     	this.createdTime = other.createdTime;
     	this.createdBy = other.createdBy;
     	this.modifiedTime = other.modifiedTime;
     	this.modifiedBy = other.modifiedBy;
     	this.del = other.del;
     	this.delBy = other.delBy;
     	this.delTime = other.delTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取编码
	 * 
	 * @return code 编码
	 */
	public String getCode() {
		return code;
	}
  	
	/**
	 * 设置编码
	 * 
	 * @param code 编码
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * 获取值
	 * 
	 * @return type 值
	 */
	public String getType() {
		return type;
	}
  	
	/**
	 * 设置值
	 * 
	 * @param type 值
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * 获取中文文本
	 * 
	 * @return text 中文文本
	 */
	public String getText() {
		return text;
	}
  	
	/**
	 * 设置中文文本
	 * 
	 * @param text 中文文本
	 */
	public void setText(String text) {
		this.text = text;
	}

	/**
	 * 获取
	 * 
	 * @return sortNo 
	 */
	public Integer getSortNo() {
		return sortNo;
	}
  	
	/**
	 * 设置
	 * 
	 * @param sortNo 
	 */
	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}

	/**
	 * 获取
	 * 
	 * @return remarks 
	 */
	public String getRemarks() {
		return remarks;
	}
  	
	/**
	 * 设置
	 * 
	 * @param remarks 
	 */
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	/**
	 * 获取[枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED
	 * 
	 * @return status [枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED
	 */
	public DictStatus getStatus() {
		return status;
	}
  	
	/**
	 * 设置[枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED
	 * 
	 * @param status [枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED
	 */
	public void setStatus(DictStatus status) {
		this.status = status;
	}

	/**
	 * 获取
	 * 
	 * @return createdTime 
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdTime 
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取
	 * 
	 * @return createdBy 
	 */
	public String getCreatedBy() {
		return createdBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdBy 
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedTime 
	 */
	public LocalDateTime getModifiedTime() {
		return modifiedTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedTime 
	 */
	public void setModifiedTime(LocalDateTime modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedBy 
	 */
	public String getModifiedBy() {
		return modifiedBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedBy 
	 */
	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	/**
	 * 获取逻辑删除，1表示已删除,0表示未删除
	 * 
	 * @return del 逻辑删除，1表示已删除,0表示未删除
	 */
	public Boolean getDel() {
		return del;
	}
  	
	/**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 * 
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 */
	public void setDel(Boolean del) {
		this.del = del;
	}

	/**
	 * 获取
	 * 
	 * @return delBy 
	 */
	public String getDelBy() {
		return delBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delBy 
	 */
	public void setDelBy(String delBy) {
		this.delBy = delBy;
	}

	/**
	 * 获取
	 * 
	 * @return delTime 
	 */
	public LocalDateTime getDelTime() {
		return delTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delTime 
	 */
	public void setDelTime(LocalDateTime delTime) {
		this.delTime = delTime;
	}

    public String toString() {
		return new StringBuilder().append("DictEntity{").
			append("id=").append(id).
			append(",code=").append(code).
			append(",type=").append(type).
			append(",text=").append(text).
			append(",sortNo=").append(sortNo).
			append(",remarks=").append(remarks).
			append(",status=").append(status).
			append(",createdTime=").append(createdTime).
			append(",createdBy=").append(createdBy).
			append(",modifiedTime=").append(modifiedTime).
			append(",modifiedBy=").append(modifiedBy).
			append(",del=").append(del).
			append(",delBy=").append(delBy).
			append(",delTime=").append(delTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public DictEntity copy() {
		return new DictEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 编码 */
	public static final String COL_CODE = "code";

    /** 值 */
	public static final String COL_TYPE = "type";

    /** 中文文本 */
	public static final String COL_TEXT = "text";

    /**  */
	public static final String COL_SORT_NO = "sort_no";

    /**  */
	public static final String COL_REMARKS = "remarks";

    /** [枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED */
	public static final String COL_STATUS = "status";

    /**  */
	public static final String COL_CREATED_TIME = "created_time";

    /**  */
	public static final String COL_CREATED_BY = "created_by";

    /**  */
	public static final String COL_MODIFIED_TIME = "modified_time";

    /**  */
	public static final String COL_MODIFIED_BY = "modified_by";

    /** 逻辑删除，1表示已删除,0表示未删除 */
	public static final String COL_DEL = "del";

    /**  */
	public static final String COL_DEL_BY = "del_by";

    /**  */
	public static final String COL_DEL_TIME = "del_time";
}
